﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Register TagPrefix="ucComment" TagName="Comment" Src="../Common/Inc/Comment.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mny3011p.aspx.cs" Inherits="Updms.Mny.Mny3011p" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Mny3011p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Mny3011p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch()" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="20%"><asp:Literal id="ltr_search_base_ym" Text="년월" runat="server" /></td>
					<td class="ctl" width="30%"><asp:textbox id="txt_search_base_ym" runat="server" Width="96.2%" CssClass="ib_b req"></asp:textbox></td>
					<td class="lbl" width="20%"><asp:Literal id="ltr_search_balance" Text="잔액" runat="server" /></td>
					<td class="ctl" width="30%"><asp:textbox id="txt_search_balance" runat="server" Width="96.4%" CssClass="ib_b_R req"></asp:textbox></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table id="table_detail_1" class="table_detail" runat="server">
				<tr>
					<td class="lbl" width="20%"><asp:Literal id="ltr_gap_amount" Text="차액" runat="server" /></td>
					<td class="ctl" width="80%"><asp:label id="lbl_gap_amount" runat="server"></asp:label></td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 설명 시작 -->
			<ucComment:Comment id="Comment" TagPrefixs="Mny3011p" runat="server"></ucComment:Comment>
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch() {
		var keyCode = window.event.keyCode;

		if ($F("txt_search_base_ym").blank()) {
			msgBox.alert(getMsg(MSG_ERR_141), setFocus, "txt_search_base_ym", keyCode); //조회년월을 입력하세요
			return false;
		}
		
		if (!isDateYM($F("txt_search_base_ym"))) {
			msgBox.alert(getMsg(MSG_ERR_084), setFocus, "txt_search_base_ym", keyCode); //잘못된 날짜형식입니다.\n올바른형식:YYYY-MM
			return false;
		}
		
		if ($F("txt_search_balance").blank()) {
			msgBox.alert(getMsg(MSG_ERR_040), setFocus, "txt_search_balance", keyCode); //잔액을 입력하세요
			return false;
		}
		
		return true;
	}

</script>
</body>
</html>